'use strict';
import * as Types from '../ActionTypes/action.types';
let init_state={status:'init',data:{content:[]}};
export default function showHistory(state = init_state, action){
   switch(action.type){
        case Types.SHOW_HISTORY.UPDATE_DATA:
        return Object.assign(...state, {
            status:'update',
            data:action.data
        });
       default:
       return state;
   }
} 